﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucHtmlEditor.ascx.cs" Inherits="ucHtmlEditor" %>
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor" TagPrefix="obout" %>
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor.ToolbarButton" TagPrefix="obout" %>
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor.Popups" TagPrefix="obout" %>
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor.ContextMenu" TagPrefix="obout" %>

<asp:UpdatePanel ID="up_HTMLEditor" runat="server">
    <ContentTemplate>
        <obout:Editor runat="server" ID="editor" Height="350px" Width="100%" ClientIDMode="AutoID">
            <QuickFormatting ClientIDMode="AutoID" />
            <EditPanel AutoFocus="true" IndentInDesignMode="20">
                <ContextMenu ClientIDMode="AutoID" UsePredefinedItems="false">
                    <AddItems>
                        <obout:EditImageItem ID="EditImageItem1" runat="server" />
                        <obout:RemoveImageItem ID="RemoveImageItem1" runat="server" />
                        <obout:RemoveFormWithoutContentItem ID="RemoveFormWithoutContentItem1" runat="server" />
                        <obout:CopyItem ID="CopyItem1" runat="server" />
                        <obout:PasteItem ID="PasteItem1" runat="server" />
                        <obout:SelectAllItem ID="SelectAllItem1" runat="server" />
                    </AddItems>
                </ContextMenu>
            </EditPanel>
            <BottomToolbar ShowHtmlTextButton="False" TemplatesFolder="" ShowHtmlTextCounter="false" ShowPlainTextCounter="false"/>
            <TopToolbar ClientIDMode="AutoID" Appearance="Lite">
                <AddButtons>
                    <obout:JustifyLeft />
                    <obout:JustifyCenter />
                    <obout:JustifyRight />
                    <obout:JustifyFull />
                    <obout:VerticalSeparator />
                    <obout:Copy />
                    <obout:Paste />
                    <obout:BulletedList />
                    <obout:OrderedList />
                    <obout:FontName >                       
                        <Options>
                            <obout:SelectOption Text="Arial" Value="arial,helvetica,sans-serif" />
                            <obout:SelectOption Text="Courier New" Value="courier new,courier,monospace" />
                            <obout:SelectOption Text="Georgia" Value="georgia,times new roman,times,serif" />
                            <obout:SelectOption Text="Tahoma" Value="tahoma,arial,helvetica,sans-serif" />
                            <obout:SelectOption Text="Times New Roman" Value="times new roman,times,serif" />
                            <obout:SelectOption Text="Verdana" Value="verdana,arial,helvetica,sans-serif" />
                            <obout:SelectOption Text="Impact" Value="impact" />
                            <obout:SelectOption Text="WingDings" Value="wingdings" />
                        </Options>
                    </obout:FontName>
                    <obout:FontSize >                       
                        <Options>
                            <obout:SelectOption Text="1 ( 8 pt)" Value="8pt" />
                            <obout:SelectOption Text="2 (10 pt)" Value="10pt" />
                            <obout:SelectOption Text="3 (12 pt)" Value="12pt" />
                            <obout:SelectOption Text="4 (14 pt)" Value="14pt" />
                            <obout:SelectOption Text="5 (18 pt)" Value="18pt" />
                            <obout:SelectOption Text="6 (24 pt)" Value="24pt" />
                            <obout:SelectOption Text="7 (36 pt)" Value="36pt" />
                        </Options>
                    </obout:FontSize>
                    <obout:HorizontalSeparator />
                    <obout:InsertImage />
                    <obout:Print />
                </AddButtons>
            </TopToolbar>
            <PopupHolder DefaultAddPolicy="Preload" TemplatesFolder="">
                <Preload>
                    <obout:ImageBrowser runat="server" ID="ib1"
                        GalleryFolders="~/Document/ImageGallery"
                        ManagedFolders="~/Document/ImageGallery">                      
                        <TreeView>
                            <LeafNodeStyle ForeColor="#0000FF" />
                            <NodeStyle Font-Names="verdana" Font-Size="11px" ForeColor="#000000" NodeSpacing="0px" />
                            <SelectedNodeStyle BackColor="Blue" ForeColor="Yellow" />
                        </TreeView>
                    </obout:ImageBrowser>
                </Preload>
            </PopupHolder>
        </obout:Editor>
    </ContentTemplate>
</asp:UpdatePanel>
